package com.bawei.ivideo.test.mvi

import com.bawei.ivideo.test.mvi.http.ApiService
import com.bawei.ivideo.test.mvi.http.VideoEntity
import com.bawei.library_net.RetrofitManager
import com.bawei.library_net.entity.ResponseEntity

/**
 * @Author : yaotianxue
 * @Time : On 2023/6/19 16:55
 * @Description : TestService
 */
class TestService {
    val api:ApiService
    init {
        api = RetrofitManager.instance.create(ApiService::class.java)
    }
    suspend fun multiVideo(page:Int,  pagesize:Int): ResponseEntity<MutableList<VideoEntity>> {
        return api.multiVideo(page,pagesize)
    }
}